using System;
using System.Collections.Generic;


namespace LiveCS.Models
{
	[Serializable]
	public class Userconfig: IEquatable<Userconfig>
	{

		#region Private Members

		private decimal _gamemoney; 		
		#endregion

		#region Constructor

		public Userconfig()
		{
			_gamemoney = 0; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual decimal GameMoney
		{
			get
			{ 
				return _gamemoney;
			}
			set
			{
				_gamemoney = value;
			}

		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region Equals And HashCode Overrides
		/// <summary>
		/// local implementation of Equals based on unique value members
		/// </summary>
		public override bool Equals( object obj )
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != this.GetType() ) ) return false;
			Userconfig castObj = (Userconfig)obj; 
			return castObj.GetHashCode() == this.GetHashCode();
		}
		
		/// <summary>
		/// local implementation of GetHashCode based on unique value members
		/// </summary>
		public override int GetHashCode()
		{
			return this.GetType().FullName.GetHashCode();
				
		}
		#endregion
		
		#region IEquatable members

		public bool Equals(Userconfig other)
		{
			if (other == this)
				return true;
		
			return other.GetHashCode() == this.GetHashCode();
				   
		}

		#endregion
		
	}
}
